package chp06.homework;

import java.util.Scanner;

public class Home7b {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        for (; ; ) {
            System.out.println("\n1.斗地主");
            System.out.println("2.斗牛");
            System.out.println("3.泡泡龙");
            System.out.println("4.连连看");
            System.out.println("0.退出");
            System.out.print("请选择，输入数字:");
            int choose = input.nextInt();
            if (choose == 0) {
                break;
            } else if (choose == 1) {
                System.out.println("进入斗地主房间");
            } else if (choose == 2) {
                System.out.println("进入斗牛房间");
            } else if (choose == 3) {
                System.out.println("进入泡泡龙房间");
            } else if (choose == 4) {
                System.out.println("进入连连看房间");
            }
        }
        System.out.println("谢谢使用");
    }
}
